package com.hjk.waibao.mj.exception;

import lombok.Data;

/**
 * @Description
 * @Author hjk
 * @Date 2020/7/6
 **/

@Data
public class CustomException extends Exception {
    private Object[] messageParam;

    public CustomException() {
        super();
    }

    public CustomException(String message, Object... messageParam) {
        super(message);
        this.messageParam = messageParam;
    }

    public CustomException(String message, Throwable cause, Object... messageParam) {
        super(message, cause);
        this.messageParam = messageParam;
    }

    public CustomException(Throwable cause, Object... messageParam) {
        super(cause);
        this.messageParam = messageParam;
    }

    protected CustomException(String message, Throwable cause,
                              boolean enableSuppression,
                              boolean writableStackTrace, Object... messageParam) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.messageParam = messageParam;
    }

}
